home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr26
/
netprog.zip
/
NETPROG.TAR
/
ipc
/
mainmsgqserv.c
< prev
next >
Wrap
C/C++ Source or Header
|
1989-12-17
|
352b
|
20 lines
#include "msgq.h"
main()
{
int readid, writeid;
/*
* Create the message queues, if required.
*/
if ( (readid = msgget(MKEY1, PERMS | IPC_CREAT)) < 0)
err_sys("server: can't get message queue 1");
if ( (writeid = msgget(MKEY2, PERMS | IPC_CREAT)) < 0)
err_sys("server: can't get message queue 2");
server(readid, writeid);
exit(0);
}